package com.dao;

import com.entity.Subject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface SubjectDao {

    List<Subject> getAll();

    List<Subject> getByQuery(@Param("subjectName") String subjectName,
                             @Param("gradeID") Integer gradeID);

    List<Subject> getByObject(Subject subject);

    List<Subject> getByMap(Map<String,Object> queryMap);

    Subject getOne(Integer subjectNo);

    int add(Subject subject);

    int update(Subject subject);

    int delete(Integer subjectNo);
}
